//
//  App_Define.h
//  HAFund
//
//  Created by 夏成龙 on 2018/10/26.
//  Copyright © 2018年 夏成龙. All rights reserved.
//

#ifndef App_Define_h
#define App_Define_h

#import <Foundation/Foundation.h>

#define UAT_BASE_URL @"http://11.8.41.95:8080"
#define SIT_BASE_URL @"http://11.8.41.94:8080"
#define OFF_BASE_URL @"https://mgw.zhengtongcf.com"


// 色值
#define THEME_COLOR  [UIColor blueColor]
#define RGB_COLOR(r, g, b) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:1.0]
#define RGBA(r, g, b, a) [UIColor colorWithRed:(r) / 255.0 green:(g) / 255.0 blue:(b) / 255.0 alpha:(a)]
#define GRAY_COLOR(c) RGB_COLOR(c, c, c)

#define RANDOM_COLOR  RGB_COLOR(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256))


//  Log:日志输出
#ifdef DEBUG
# define NSLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define NSLog(Format, ...)
#endif

// 宽、高
#define IS_IPHONE_6_WIDTH_LESS    (kScreenWidth < 375.f ? YES : NO)
//比例宽
#define RATEWIDTH_iPhone6(WIDTH) ((WIDTH)/375.0) * [[UIScreen mainScreen] bounds].size.width
//比例高
#define RATEHEIGHT_iPhone6(HEIGHT) ((HEIGHT)/667.0) * [[UIScreen mainScreen] bounds].size.height

#define kSCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define kSCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height


#endif /* App_Define_h */
